#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>
#include <QFile>
#include "bmp.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:

    void display(Bmp *bmp);

    void display_for_cut(Bmp *bmpint, int slider_up, int slider_down, int slider_left, int slider_right);

    void checkImageLoaded();

    void on_ReadImage_clicked();

    void on_GrayScale_clicked();

    void on_Gausssian_blur_clicked();

    void on_exit_clicked();

    void on_saveImage_clicked();

    void on_Up_to_Dowm_clicked();

    void on_right_to_left_clicked();

    void on_spin_90_clicked();

    void on_zoom_in_clicked();

    void on_zoom_out_clicked();

    void display_zoomed();

    void on_cut_clicked();

    void on_cancel_cut_clicked();

    void on_ok_cut_clicked();

    void on_horizontalSlider_up_valueChanged(int value);

    void on_horizontalSlider_down_valueChanged(int value);

    void on_verticalSlider_left_valueChanged(int value);

    void on_verticalSlider_right_valueChanged(int value);

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
